/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f8f8;
}

.logo img {
    height: 50px;
}

.user-info a {
    margin-left: 10px;
    color: #777;
    text-decoration: none;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #e0e0e0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px;
    display: block;
}

nav ul li a:hover {
    background-color: #ccc;
}

main {
    padding: 20px;
}

.user-profile, .order-history {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #f5f5f5;
}

footer p {
    text-align: center;
    color: #777;
    margin: 0;
    padding: 10px 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    position: relative;
    display: inline-block;
}

nav ul li .dropdown {
    display: none; /* 默认隐藏子菜单 */
    position: absolute;
    background-color: #fff; /* 设置下拉菜单的背景颜色 */
    border: 1px solid #ccc; /* 边框 */
    z-index: 1;
}

nav ul li .dropdown {
    display: none; /* 默认隐藏子菜单 */
    position: absolute;
    background-color: #fff; /* 设置下拉菜单的背景颜色 */
    border: 1px solid #ccc; /* 边框 */
    z-index: 1;
    min-width: 150px; /* 设置下拉菜单最小宽度 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
}

nav ul li:hover .dropdown {
    display: block; /* 鼠标悬停时显示子菜单 */
}

nav ul li .dropdown li {
    display: block; /* 使子菜单项垂直排列 */
}

nav ul li .dropdown li a {
    display: block; /* 链接占据全宽 */
    padding: 10px 15px; /* 增加内边距 */
    text-decoration: none; /* 去掉下划线 */
    color: #333; /* 字体颜色 */
    transition: background-color 0.3s; /* 增加过渡效果 */
}

nav ul li .dropdown li a:hover {
    background-color: #f2f2f2; /* 悬停时背景色 */
    color: #000; /* 悬停时字体颜色 */
}
